package land;


import Vo.Land;
import Vo.Store;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import page.PageBean;
import util.JsonResult;

import java.util.List;

@FeignClient
@LoadBalancerClient
public interface StoreFeiginInterface {

    @RequestMapping("/land/getAll")
    List<Store> queryAll(@RequestBody PageBean pageBean);

    @RequestMapping("/store/queryById")
    boolean queryByStroeId(@RequestBody Store store);

    @RequestMapping("/store/insertStore")
    boolean addStore(@RequestBody Store store);

    @RequestMapping("/store/deleteById")
    boolean deleteById(@RequestBody Store store);

    @RequestMapping("/store/getByname")
    public JsonResult<List<Store>> getByName(String name);


}
